package lab02.test11;

/**
 * Created by V555 on 2017/10/23.
 */
public class Square extends Rectangle {
    double diagonal;
   double diagonal(){
        diagonal=(Math.sqrt(2*length*width));
        return diagonal;
   }

    @Override
    public void printMyWay() {
        System.out.println(diagonal);
        System.out.println(length);
        System.out.println(area);
        System.out.println(perimeter);
    }
}